package com.seckill.system.api;

import com.seckill.common.core.constant.ServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "remoteMsgService",name= ServiceNameConstants.USER_SERVICE)
public interface RemoteMsgService {

	/**
	 * 发送短信验证码
	 * 每日最多获取3条验证码
	 * @param phoneNum
	 * @return
	 */
	@GetMapping(value="/sms/sendVerifyCode")
	public Boolean sendVerifyCode(@RequestParam("phoneNum") String phoneNum);

	/**
	 * 验证verifyCode
	 * @param phoneNum
	 * @param verifyCode
	 * @return
	 */
	@GetMapping(value="/sms/checkVerifyCode")
	public Boolean checkVerifyCode(@RequestParam("phoneNum") String phoneNum, @RequestParam("verifyCode") String verifyCode);

}


